package cn.JHai.rbac.domain;

import lombok.Getter;
import lombok.Setter;

import java.text.SimpleDateFormat;
import java.util.Date;

@Setter
@Getter
public class Customertransfer {
    private Long id;

    private Long customer_id;

    private Long operator_id;

    private Date operate_time;

    private Long old_seller_id;

    private Long new_seller_id;

    private String reason;

    /////////////////
    private Customer customer;

    private Employee operator;

    private Employee old_seller;

    private Employee new_seller;

    private String str_operate_time;

    public String getStr_operate_time(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return this.str_operate_time = sdf.format(this.operate_time);
    }
}